import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { TestComponent } from './test.component';

import { LongestCommonPrefixComponent } from './longest-common-prefix/longest-common-prefix.component';


const routes: Routes = [
  {
    path: '',
    component: TestComponent,
    children: [
      {
        path: '',
        loadChildren: './home/home.module#HomeModule'
      },
      {
        path: '3Sum',
        loadChildren: './three-sum/three-sum.module#ThreeSumModule'
      },
      {
        path: '4Sum',
        loadChildren: './four-sum/four-sum.module#FourSumModule'
      },
      {
        path: 'longestCommonPrefixComponent',
        component: LongestCommonPrefixComponent
      },
      {
        path: '**',
        redirectTo: ''
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class TestRoutingModule {
}
